
<div class="col-sm-12 mt20">
     <div class="panel">
           <div class="panel-body">
                <div class="col-sm-12">
			              <div class="row">			        
                            <div class="col-sm-2"> 
                                <input type="text" class="form-control" ng-model="searchform.code" placeholder="产品编号">
                            </div>  
                            <div class="col-sm-2"> 
                              <input type="text" class="form-control" ng-model="searchform.name" placeholder="产品名称">
                            </div>
                            <div class="col-sm-2"> 
                              <input type="text" class="form-control" ng-model="searchform.company_code" placeholder="机构编号">
                            </div>
                            <div class="col-sm-2"> 
                               <input type="text" class="form-control" ng-model="searchform.update_by" placeholder="登录账号">
                            </div>
                             <div class="col-sm-2"> 
                                 <ui-select ng-model="searchform.card_type" theme="bootstrap" ng-keyup="myKeyup($event)">
                                    <ui-select-match placeholder="产品分类">
                                      {{$select.selected.label}}
                                    </ui-select-match>
                                    <ui-select-choices repeat="item.value as item in typearr | filter: $select.search">
                                      <span ng-bind-html="item.label | highlight: $select.search"></span>
                                    </ui-select-choices>
                                  </ui-select>
                             </div>
                              <div class="col-sm-2"> 
                                 <ui-select ng-model="searchform.state" theme="bootstrap" ng-keyup="myKeyup($event)">
                                    <ui-select-match placeholder="产品状态">
                                      {{$select.selected.label}}
                                    </ui-select-match>
                                    <ui-select-choices repeat="item.value as item in statearr | filter: $select.search">
                                      <span ng-bind-html="item.label | highlight: $select.search"></span>
                                    </ui-select-choices>
                                  </ui-select>
                              </div>
			               </div>
                      <div class="row mt10">			        
                            <div class="col-sm-8"> 
                            </div>  
                             <div class="col-sm-2"> 
                               <input type="button " class="btn btn-success search form-control" ng-click="create()" value="创建产品">
                             </div>
                              <div class="col-sm-2"> 
                                <input type="button " class="btn btn-info search form-control" ng-click="search()" value="立即搜索">
                              </div>
			               </div>
                </div>
           </div>
     </div>
                  
  <div class="col-md-12 panel panel-default table-responsive">
      <div class="panel-body">
  <table class="table table-condensed table-hover table-bordered">
    <thead>
      <tr>
      	<th class="col-md-2 text-center">产品编号</th>
        <th class="col-md-3 text-center">产品名称</th>
        <th class="col-md-1 text-center">产品分类</th>
        <th class="col-md-1 text-center">市场价格</th>
        <th class="col-md-1 text-center">指导价格</th>
        <!--<th class="col-md-2 text-center">绑定卡池名称</th>
        <th class="col-md-2 text-center">绑定票销售品编号</th>-->
        <th class="col-md-1 text-center">产品状态</th>
        <th class="col-md-1 text-center">操作时间</th>
        <th class="col-md-1 text-center">操作账号</th>
        <th class="col-md-1 text-center">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="obj in objs">
      	<td class="text-center">{{obj.code}}</td>
        <td class="text-center">{{obj.name}}</td>
        <td class="text-center">{{obj.card_type_name}}</td>
        <td class="text-center">{{obj.market_price | currency : '￥'}}</td>
        <td class="text-center">{{obj.guide_price | currency : '￥'}}</td>
        <!--<<td class="text-center">{{obj.pool_name}}</td>
        <td class="text-center">{{obj.ticket_code}}</td>-->
        <td class="text-center">{{obj.state_name}}</td>
        <td class="text-center">{{obj.update_date}}</td>
        <td class="text-center">
        	{{obj.company_name}}<br>
     		{{obj.company_code}}<br>
     		{{obj.update_by}}
        </td>
        <td class="text-center">
        	<a ng-show="obj.state=='0' || obj.state=='2'"
          	ng-click="start(obj.code)" class="btn btn-danger btn-xs">上架</a>
          <a ng-show="obj.state=='0' || obj.state=='2'" ng-click="edit(obj.id, obj.state)" class="btn btn-success btn-xs">编辑</a>
          <a ng-show="obj.state=='1'"
          ng-click="stop(obj.code)" class="btn btn-primary btn-xs">下架</a>
          <a ng-show="obj.state=='1'" ng-click="check(obj.id)" class="btn btn-warning btn-xs">详情</a>
          
        </td>
        </th>
      </tr>
    </tbody>
  </table>
 

   <div class="text-right">

    <pagination 
      total-items="bigTotalItems" 
      ng-model="bigCurrentPage" 
      max-size="maxSize" 
      class="pagination-sm" 
      boundary-links="true" 
      ng-change="search()"
      items-per-page="itemsPerPage"
      previous-text="上一页"
      next-text="下一页"
      first-text="首页"
      last-text="末页"
      rotate="false">
    </pagination>

  </div> 
   </div>
   </div>

</div>